﻿using Core.DataAccess.Model.Project.Queue;
using Core.DataAccess.Model.ProjectLogs;
using Core.DataAccess.Model.Projects;
using Core.Framework.Model.Common;
using Core.Framework.Redis;
using Microsoft.Extensions.DependencyInjection;

namespace Core.Web
{
    /// <summary>
    /// 注册数据库服务
    /// </summary>
    /// <returns></returns>
    public class DIRegisterContext : IDIRegister
    {
        public void Execute(IServiceCollection services)
        {
            services.AddTransient<ProjectContext>()
                .AddTransient<ProjectLogsContext>()
                .AddTransient<IRedisHelper, RedisHelper>()
                .AddTransient<ProjectSocketContext>();
        }
    }
}
